package org.styx.account.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.styx.account.domain.Account;

import java.math.BigDecimal;

/**
 * @date 2021/8/6
 * @auther uranus
 */
@Mapper
public interface AccountMapper extends BaseMapper<Account> {
    /**
     * 扣减金额
     * @param userId
     * @param money
     */
    void decrease(@Param("userId")Long userId, @Param("money")BigDecimal money);
}
